package lab03.Test01;


import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * Created by Administrator on 2017/12/6.
 */
public class D20171206 {
    public static void main(String[] args) {
        String path="E://HELLO.txt";
        BufferedWriter writer=null;
        try {
            writer=new BufferedWriter(new FileWriter(path));
            writer.write("fuhfewfhefhwe");
            writer.newLine();
            writer.write("人是真的困难啊");
            writer.newLine();
            writer.write("不知道为什么");
            writer.newLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        finally {
            try {
                writer.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }



}

